﻿package code.phpnet
{
	/**
	 * 单例模式类
	 */
	public class Remoting 
	{		
		private static var _instance:Remoting = null;
		/**获取桌子信息**/
		private var _nuTables:TableRo = null;
		/**获取用户信息**/
		private var _userRo:UserRo = null;
		/**
		 * 构造
		 */
		public function Remoting(single:Single) 
		{
			_nuTables = new TableRo();
			_userRo = new UserRo();
		}
		
		
		//------------------------------------------------------------------------------------------------------//		

		public function get userRo():UserRo
		{
			return _userRo;
		}

		public function set userRo(value:UserRo):void
		{
			_userRo = value;
		}

		public function get nuTables():TableRo
		{
			return _nuTables;
		}

		public function set nuTables(value:TableRo):void
		{
			_nuTables = value;
		}

		/**
		 * 单例引用
		 */
		public static function getInstance():Remoting
		{
			if(_instance == null)
			{
				_instance = new Remoting(new Single());
			}
			return _instance;
		}
	}
	
}
class Single{}